import http from "./http";

export function fetchCartItems(params = {}) {
  return http.get("/trade/cart", { params });
}

export function updateCartItem(id, payload) {
  return http.put(`/trade/cart/${id}`, payload);
}

export function deleteCartItem(id) {
  return http.delete(`/trade/cart/${id}`);
}
